/* Copyright (c) 2002-2009 Grupo e-Gen.  All rights reserved.
 *
 * ====================================================================
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation;
 * either version 2.1 of the License, or any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
 * See the GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 * MA 02111-1307 USA
 * 
 */

package br.com.managerprojectplugin.perspective;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

import br.com.managerprojectplugin.view.StakeHoldersview;
import br.com.managerprojectplugin.view.UseCaseView;

/**
 * Class: ManagerProjectsPespective
 *   
 * @author Grupo e-Gen 
 * @version 1.0 (07/07/2012)
 * @since 1.0 (14/07/2012)
 */
public class ManagerProjectsPespective implements IPerspectiveFactory {

	@Override
	public void createInitialLayout(IPageLayout layout) {

		String editorArea = layout.getEditorArea();
		
		IFolderLayout createFolder = layout.createFolder("left", IPageLayout.LEFT, 0.25f, editorArea);
		createFolder.addView(UseCaseView.USECASEVIEW_ID);
		createFolder.addView(StakeHoldersview.STAKEHOLDERS_ID);
	}

}
